package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 销售明细实体类
 */
@TableName("t_sellInfo")
public class SellInfoBean {
    //    销售明细编号
    @TableId(value = "pk_sellId",type = IdType.AUTO)
    private Integer id;

    //    销售商品实体类
    @TableField(exist = false)
    private ProductBean product;

    //    销售商品编号
    @TableField("fk_productId")
    private String productId;

    //    所属销售实体类
    @TableField(exist = false)
    private SellBean sell;

    //    销售价
    @TableField("si_sellMoney")
    private Integer sellMoney;

    //    销售数量
    @TableField("si_num")
    private Integer num;

    //    所属销售实体编号
    @TableField("fk_sellId")
    private Integer sellId;

    public SellInfoBean() {
    }

    public SellInfoBean(String productId, Integer sellMoney, Integer num, Integer sellId) {
        this.productId = productId;
        this.sellMoney = sellMoney;
        this.num = num;
        this.sellId = sellId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public SellBean getSell() {
        return sell;
    }

    public void setSell(SellBean sell) {
        this.sell = sell;
    }

    public Integer getSellMoney() {
        return sellMoney;
    }

    public void setSellMoney(Integer sellMoney) {
        this.sellMoney = sellMoney;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getSellId() {
        return sellId;
    }

    public void setSellId(Integer sellId) {
        this.sellId = sellId;
    }

    @Override
    public String toString() {
        return "SellInfoBean{" +
                "id=" + id +
                ", product=" + product +
                ", productId=" + productId +
                ", sell=" + sell +
                ", sellMoney=" + sellMoney +
                ", num=" + num +
                ", sellId=" + sellId +
                '}';
    }
}
